﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KingerRobot.PCRBW.SpiService;

public class TaskDTO
{
    /// <summary>
    /// 任务Id
    /// </summary>
    public long TaskId { get; set; }
    /// <summary>
    /// 任务号
    /// </summary>
    public int TaskNo { get; set; }
    /// <summary>
    /// 开始位置
    /// </summary>
    public long StartLoc { get; set; }
    /// <summary>
    /// 目标位置
    /// </summary>
    public long? TargetLoc { get; set; }
    /// <summary>
    /// 指令目标位置
    /// </summary>
    public long TargetCmdLoc { get; set; }
    /// <summary>
    /// 类型
    /// </summary>
    public int Type { get; set; }
    /// <summary>
    /// 指令类型
    /// </summary>
    public int CmdType { get; set; }
    /// <summary>
    /// 状态
    /// </summary>
    public int Status { get; set; }
    /// <summary>
    /// SKU ID [ProdSku]
    /// </summary>
    public long SkuId { get; set; }
    /// <summary>
    /// 车号
    /// </summary>
    public string SkuCode { get; set; }
    /// <summary>
    /// 组
    /// </summary>
    public int GroupNo { get; set; }
    /// <summary>
    /// 顺序号
    /// </summary>
    public int GroupIndex { get; set; }
    /// <summary>
    /// 开始设备 [0时获取目标位置对应设备，非0时取自身值]
    /// </summary>
    public long? StartEquip { get; set; } = 0;
    /// <summary>
    /// 目标设备 [0时获取目标位置对应设备，非0时取自身值]
    /// </summary>
    public long? TargetEquip { get; set; } = 0;
    /// <summary>
    /// 备注
    /// </summary>
    public string Remark { get; set; }
    /// <summary>
    /// 扫描次数
    /// </summary>
    public int ScanCount { get; set; } = 1;
    /// <summary>
    /// 重量
    /// </summary>
    public decimal TireWeight { get; set; }
    /// <summary>
    /// 入库Id
    /// </summary>
    public string MesProductId { get; set; }
    /// <summary>
    /// 物料信息
    /// </summary>
    public string material_id { get; set; }
    /// <summary>
    /// 订单ID
    /// </summary>
    public string OrderId { get; set; }
    /// <summary>
    /// 订单优先级
    /// </summary>
    public int OutOrderPriority { get; set; }
    /// <summary>
    /// 标记 0：出库；1/2：强制出库；3：返库;4：入库
    /// </summary>
    public int? Mark { get; set; }
    /// <summary>
    /// 是否跨库
    /// </summary>
    public int IsCross { get; set; }
    /// <summary>
    /// 物料尺寸
    /// </summary>

    public decimal Innerdiameter { get; set; }
}
public class TaskCmdDTO
{
    /// <summary>
    /// 开始位置
    /// </summary>
    public long StartLoc { get; set; }
    /// <summary>
    /// 目标位置
    /// </summary>
    public long? TargetLoc { get; set; }
    /// <summary>
    /// 指令目标位置
    /// </summary>
    public long TargetCmdLoc { get; set; }
    /// <summary>
    /// 类型
    /// </summary>
    public int Type { get; set; }
    /// <summary>
    /// 指令类型
    /// </summary>
    public int CmdType { get; set; }
    /// <summary>
    /// 状态
    /// </summary>
    public int Status { get; set; }
  
    /// <summary>
    /// 开始设备 [0时获取目标位置对应设备，非0时取自身值]
    /// </summary>
    public long? StartEquip { get; set; } = 0;
    /// <summary>
    /// 目标设备 [0时获取目标位置对应设备，非0时取自身值]
    /// </summary>
    public long? TargetEquip { get; set; } = 0;
    /// <summary>
    /// 备注
    /// </summary>
    public string Remark { get; set; }
   
    /// <summary>
    /// 重量
    /// </summary>
    public decimal TireWeight { get; set; }
    /// <summary>
    /// 产品信息ID
    /// </summary>
    public string MesProductId { get; set; }

    /// <summary>
    /// 订单优先级
    /// </summary>
    public int OutOrderPriority { get; set; }
    /// <summary>
    /// 出库订单ID
    /// </summary>
    public string OutOrderId { get; set; }
    
}